package com.hz.monitoring.module.hardware.convert.sensor_tenant_type;

import com.hz.monitoring.framework.common.pojo.PageResult;
import com.hz.monitoring.module.hardware.controller.admin.sensor_tenant_type.vo.SensorTenantTypeCreateReqVO;
import com.hz.monitoring.module.hardware.controller.admin.sensor_tenant_type.vo.SensorTenantTypeExcelVO;
import com.hz.monitoring.module.hardware.controller.admin.sensor_tenant_type.vo.SensorTenantTypeRespVO;
import com.hz.monitoring.module.hardware.controller.admin.sensor_tenant_type.vo.SensorTenantTypeUpdateReqVO;
import com.hz.monitoring.module.hardware.dal.dataobject.sensor_tenant_type.SensorTenantTypeDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 传感器租户分类 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface SensorTenantTypeConvert {

    SensorTenantTypeConvert INSTANCE = Mappers.getMapper(SensorTenantTypeConvert.class);

    SensorTenantTypeDO convert(SensorTenantTypeCreateReqVO bean);

    List<SensorTenantTypeDO> convert(List<SensorTenantTypeCreateReqVO> bean);

    SensorTenantTypeDO convert(SensorTenantTypeUpdateReqVO bean);

    SensorTenantTypeRespVO convert(SensorTenantTypeDO bean);

    List<SensorTenantTypeRespVO> convertList(List<SensorTenantTypeDO> list);

    PageResult<SensorTenantTypeRespVO> convertPage(PageResult<SensorTenantTypeDO> page);

    List<SensorTenantTypeExcelVO> convertList02(List<SensorTenantTypeDO> list);

}
